<?php
/**
 * Created by PhpStorm.
 * User: zty
 * Date: 2018/10/28
 * Time: 11:32
 */

namespace app\common\model;
use think\Model;

class Config extends Model
{
    public function get_one(){
        return $this->find();
    }

    public function note_update($info){
        return $this->where(['display'=>1])->update(['updatetime'=>time(),'note'=>$info]);
    }
}